/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.io.PrintWriter;
import java.util.Set;

/**
 * <p>Project: javase2203 - ForIn2
 * <p>Powered by webrx On 2022-07-14 14:42:24
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class ForIn2 {
    public static void main(String[] args) throws Exception {
        PrintWriter out = new PrintWriter("sys.log");

        //Set<String> 集合
        Set<String> ss = System.getProperties().stringPropertyNames();
        for (String n : ss) {
            out.printf("System.getProperty(\"%s\") = \"%s\"%n", n, System.getProperty(n));
        }
        out.flush();
        out.close();
    }
}
